import request from "../../utils/request";
// 获取attrList
export const reqAttrInfoList = ({ category1Id, category2Id, category3Id }) => {
  return request({
    method: "GET",
    url: `/admin/product/attrInfoList/${category1Id}/${category2Id}/${category3Id}`
  });
};
// 得到详细属性值的列表
export const reGetAttrValueList = attrId => {
  return request({
    method: "GET",
    url: ` /admin/product/getAttrValueList/${attrId}`
  });
};

// 删除属性列表
export const reqDeleteAttr = attrId => {
  return request({
    method: "DELETE",
    url: ` /admin/product/deleteAttr/${attrId}`
  });
};

// 添加属性值
export const reqSaveAttrInfo = data => {
  return request({
    method: "POST",
    url: `/admin/product/saveAttrInfo`,
    data
  });
};
